﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Admin_Report" %>

<%@ Register Src="~/UserControl/MonthSelectControl.ascx" TagPrefix="uc1" TagName="MonthSelectControl" %>




<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <asp:UpdatePanel ID="up1" runat="server">
        <ContentTemplate>
            <div>
                <h2>Select Month</h2>
                <uc1:MonthSelectControl runat="server" ID="MonthSelectControl" />
                <asp:Label ID="lblDate" runat="server"></asp:Label>
            </div>

            <div class="box_simple">
                <asp:GridView ID="gvPackage" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField HeaderText="ID" DataField="ID" />
                        <asp:BoundField HeaderText="Sender" DataField="Sender" />
                        <asp:BoundField HeaderText="From" DataField="SenderLocation" ItemStyle-Width="300px" />
                        <asp:BoundField HeaderText="Receiver" DataField="Receiver" />
                        <asp:BoundField HeaderText="To" DataField="ReceiverLocation" ItemStyle-Width="300px" />
                        <asp:BoundField HeaderText="Weight" DataField="Weight" DataFormatString="{0:##.00} Kg" ItemStyle-Width="100px" />
                        <asp:BoundField HeaderText="Price" DataField="Price" DataFormatString="${0:##.00}" ItemStyle-Width="100px" />
                        <asp:BoundField HeaderText="Status" DataField="Status" ItemStyle-Width="100px" />
                        <%--  <asp:TemplateField>
                <ItemTemplate>
                    <asp:HyperLink ID="linkEditRoute" runat="server" Text="Edit Route" NavigateUrl='<%# String.Format("~/Admin/Package/EditRoute.aspx?barcode={0}",Eval("barcode")) %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>--%>
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#507CD1" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div>
        <asp:Button ID="btnExport" runat="server" Text="Export to Excel" OnClick="btnExport_Click" />
    </div>
</asp:Content>

